<?php /* Smarty version Smarty-3.0.8, created on 2012-11-04 04:56:07
         compiled from "F:\Zend Debug\workForYangtzeu\administrator/template\privilegeManager.list.center.html" */ ?>
<?php /*%%SmartyHeaderCode:55595093bf1e8da020-91458449%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '09cd11adfbbd0d5a4601277559e0a5630743032b' => 
    array (
      0 => 'F:\\Zend Debug\\workForYangtzeu\\administrator/template\\privilegeManager.list.center.html',
      1 => 1352000048,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '55595093bf1e8da020-91458449',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<style>
table tr td span{
	border: 1px solid #234589;
	cursor: pointer;
	background-color: #eee;
	border-radius:	5px;
}
</style>
      <script src="assets/jquery/jquery-ui-1.8.23.custom.min.js" type="text/javascript" charset="utf-8"></script>
      <link rel="stylesheet" href="assets/jquery/ui-themes/smoothness/jquery-ui-1.8.23.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
<div class="content-box">
	<!-- Start Content Box -->
	<div class="content-box-header">
		<h3>用户/用户组权限管理</h3>
		<ul class="content-box-tabs">
			<li><a href="#tab1" class="default-tab">所有权限规则</a></li>
			<li><a href="#tab2">编辑</a></li> 
			<li><a href="#tab3">添加</a></li>
		</ul>
	</div>
	<!-- End .content-box-header -->
	<!-- Start .content-box-content -->
	<div class="content-box-content">
		<div class="tab-content default-tab" id="tab1">
			<table>
				<thead>
					<tr>
						<th>权限名</th>
						<th>用户允许列表</th>
						<th>用户禁止列表</th>
						<th>部门是允许列表</th>
						<th>部门是禁止列表</th>
					</tr>
				</thead>
				<tbody>
				<?php  $_smarty_tpl->tpl_vars['privilegeItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('privilegeList')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['privilegeItem']->key => $_smarty_tpl->tpl_vars['privilegeItem']->value){
?>
					<tr pid = "<?php echo $_smarty_tpl->tpl_vars['privilegeItem']->value['privilege_id'];?>
">
						<td><?php echo $_smarty_tpl->tpl_vars['privilegeItem']->value['name'];?>
</td>
							<td>
									<?php  $_smarty_tpl->tpl_vars['employeeItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['privilegeItem']->value['employee']['allow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['employeeItem']->key => $_smarty_tpl->tpl_vars['employeeItem']->value){
?>
										<span><?php echo $_smarty_tpl->tpl_vars['employeeItem']->value['realname'];?>
</span>
									<?php }} ?>
							</td>
							<td>
									<?php  $_smarty_tpl->tpl_vars['employeeItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['privilegeItem']->value['employee']['disallow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['employeeItem']->key => $_smarty_tpl->tpl_vars['employeeItem']->value){
?>
										<span><?php echo $_smarty_tpl->tpl_vars['employeeItem']->value['realname'];?>
</span>
									<?php }} ?>
							</td>
							<td>
									<?php  $_smarty_tpl->tpl_vars['departmentItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['privilegeItem']->value['department']['allow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['departmentItem']->key => $_smarty_tpl->tpl_vars['departmentItem']->value){
?>
										<span><?php echo $_smarty_tpl->tpl_vars['departmentItem']->value['name'];?>
</span>
									<?php }} ?>
							</td>
							<td>
									<?php  $_smarty_tpl->tpl_vars['departmentItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['privilegeItem']->value['department']['disallow']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['departmentItem']->key => $_smarty_tpl->tpl_vars['departmentItem']->value){
?>
										<span><?php echo $_smarty_tpl->tpl_vars['departmentItem']->value['name'];?>
</span>
									<?php }} ?>
							</td>
					</tr>
					<?php }} ?>
					<tr>
						<td></td>
						<td></td>
						<td></td>
					</tr>
				</tbody>
			</table>
<!-- 			<div style="width: 500px; height: 200px; background: red;">ALLOW BOX</div> -->
<!-- 			<div style="width: 500px; height: 200px; background: black;">DISALLOW BOX</div> -->
<!-- 			<input type="submit" value="添加新的规则" onclick="new_dialog()"/> -->
			<a href="http://10.202.1.109/workForYangtzeu/administrator/index.php?c=privilegeManager&a=add">添加新的权限规则</a>
		</div>
		<div class="tab-content" id="tab2"></div>
		<div class="tab-content" id="tab3"></div>
	</div>
	<!-- End .content-box-content -->
</div>
<!-- End .content-box -->